import com.dmotiko.general.*
import com.dmotiko.akira.*

class PortfolioPhotoButton
extends BaseClip {
	
	function PortfolioPhotoButton() {
		AkiraApp.getApp().addListener(checkEnabled, new AkiraAppEvent(AkiraAppEvent.CHANGE_SECTION, this));
		this._visible = false;		
	}
	
	public function onRollOver(){
		this._alpha = 70;
	}
	public function onRollOut(){
		this._alpha = 100;
	}
	public function onRelease(){
		propagateEvent(new BaseClipEvent(BaseClipEvent.CHANGED, this));
	}
	
	public function checkEnabled(evnt, data){
		var thisBtn = data.bind;
		if(data.data != AkiraApp.WORK){
			thisBtn._visible = false;
			return;
		}
		thisBtn.moveBtns();
	}

}